package cn.gcBlock.service;

//import org.springframework.cache.annotation.CacheConfig;
//import org.springframework.cache.annotation.CacheEvict;
//import org.springframework.cache.annotation.Cacheable;
import cn.gcBlock.po.DigOre;
import cn.gcBlock.dto.DigOreDTO;
import cn.gcBlock.dto.DigOreQueryCriteria;
import org.springframework.data.domain.Pageable;

/**
* @author jie
* @date 2019-09-15
*/
//@CacheConfig(cacheNames = "digOre")
public interface DigOreService {

/**
* queryAll 分页
* @param criteria
* @param pageable
* @return
*/
//@Cacheable(keyGenerator = "keyGenerator")
Object queryAll(DigOreQueryCriteria criteria, Pageable pageable);

/**
* queryAll 不分页
* @param criteria
* @return
*/
//@Cacheable(keyGenerator = "keyGenerator")
public Object queryAll(DigOreQueryCriteria criteria);

/**
* findById
* @param id
* @return
*/
//@Cacheable(key = "#p0")
DigOreDTO findById(Integer id);

/**
* create
* @param resources
* @return
*/
//@CacheEvict(allEntries = true)
DigOreDTO create(DigOre resources);

/**
* update
* @param resources
*/
//@CacheEvict(allEntries = true)
void update(DigOre resources);

/**
* delete
* @param id
*/
//@CacheEvict(allEntries = true)
void delete(Integer id);
}